<template>
  <div>
<!--    <h3>当前最新的count值为：{{$store.state}}</h3>-->
    <h3>当前最新的count值为：{{count}}</h3>
    <button>-1</button>
  </div>
</template>

<script>
import {mapState} from 'vuex'

export default {
  data(){
    return{}
  },
  computed:{
    ...mapState(['count'])
  }
}
</script>
